//
//  main.m
//  ObjectiveCTestMain
//
//  Created by WuDi on 21/03/13.
//  Copyright (c) 2013 WuDi. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    @autoreleasepool {
        NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"25",@"age",@"张三",@"name",@"男",@"性别",nil];
        NSLog(@"%lu", [dictionary count]);
        NSEnumerator *enumeratorKey = [dictionary keyEnumerator];
        for (NSObject *object in enumeratorKey) {
            NSLog(@"key:%@", object);
        }
        
        NSEnumerator *enumeratorObject = [dictionary objectEnumerator];
        for (NSObject *object in enumeratorObject) {
            NSLog(@"value:%@", object);
        }
        NSLog(@"key name的值是:%@", [dictionary objectForKey:@"name"]);
        
    }
    return 0;
}

